﻿using System;

namespace MyAMS
{
    /// <summary>
    /// 组件
    /// </summary>
    public interface IComponent : IDisposable
    {
        /// <summary>
        /// 获取一个值, 改制指示当前实例是否已被初始化
        /// </summary>
        bool IsInitialized { get; }

        /// <summary>
        /// 应用程序
        /// </summary>
        IApplication Application { get; }

        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="application">应用程序</param>
        void Initialize(IApplication application);
    }
}
